package com.chengzhi.extension;

import org.springframework.context.Lifecycle;
import org.springframework.stereotype.Component;

@Component
public class ConsumerSmartLifecycle implements Lifecycle {
    @Override
    public void start() {
        System.out.println("--------start-----------");
    }

    @Override
    public void stop() {
        System.out.println("--------end-----------");
    }

    @Override
    public boolean isRunning() {
        return true;
    }
}
